// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.asset;

import jassimp.AiPostProcessSteps;
import jassimp.Jassimp;
import java.util.EnumSet;
import zombie.fileSystem.FileSystem;
import zombie.fileSystem.FileTask;
import zombie.fileSystem.IFileTaskCallback;

public final class FileTask_LoadAiScene extends FileTask {
    String m_filename;
    EnumSet<AiPostProcessSteps> m_post_process_step_set;

    public FileTask_LoadAiScene(String filename, EnumSet<AiPostProcessSteps> pps, IFileTaskCallback cb, FileSystem fileSystem) {
        super(fileSystem, cb);
        this.m_filename = filename;
        this.m_post_process_step_set = pps;
    }

    @Override
    public String getErrorMessage() {
        return this.m_filename;
    }

    @Override
    public void done() {
        this.m_filename = null;
        this.m_post_process_step_set = null;
    }

    public Object call() throws Exception {
        return Jassimp.importFile(this.m_filename, this.m_post_process_step_set);
    }
}
